#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

int removeDuplicates(int* nums, int numsSize);

int main()
{
	return 0;
}

int removeDuplicates(int* nums, int numsSize)
{
	if (!numsSize) return 0;

	int size = 1;
	for (int i = 1, prev = nums[0]; i < numsSize; i++) {
		if (nums[i] == prev) continue;
		prev = nums[i];
		nums[size++] = nums[i];
	}

	return size;
}
